<div class="promotions index">
    <h2><?php echo __('Listado de Promociones'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
<!--            <th><?php // echo $this->Paginator->sort('ID');  ?></th>-->
            <th><?php echo $this->Paginator->sort('Nombre'); ?></th>
            <th><?php echo $this->Paginator->sort('Precio de Venta ($)'); ?></th>
            <th class="actions"><?php echo __('Opciones'); ?></th>
        </tr>
        <?php foreach ($promotions as $promotion): ?>
            <tr>
    <!--                <td><?php // echo h($promotion['Promotion']['id']);  ?>&nbsp;</td>-->
                <td><?php echo h($promotion['Promotion']['name']); ?>&nbsp;</td>
                <td><?php echo h($promotion['Promotion']['sale_price']); ?>&nbsp;</td>
                <td class="actions">
                    <?php echo $this->Html->link(__('Detalle'), array('controller' => 'ProductPromotions', 'action' => 'view', $promotion['Promotion']['id'])); ?>
                    <?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $promotion['Promotion']['id'])); ?>
                    <?php echo $this->Form->postLink(__('Borrar'), array('action' => 'delete', $promotion['Promotion']['id']), null, __('¿Realmente desea elimanar la promocion "%s"?', ucwords($promotion['Promotion']['name']))); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>

    <?php echo $this->element('footer/paginator') ?>

</div>
<div class="actions">
    <h3><?php echo __('Opciones'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Crear Promocion'), array('action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('+ Producto a Promo'), array('controller' => 'ProductPromotions', 'action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('Producto de Promos'), array('controller' => 'ProductPromotions', 'action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('Resumen de Ventas'), array('controller' => 'sales', 'action' => 'index')); ?> </li>
    </ul>
</div>
